package com.example.bridge.extend;

import com.example.bridge.HouseholdAppliances;
import com.example.bridge.RemoteControl;

public class BasicControl extends RemoteControl {
    public BasicControl(HouseholdAppliances householdAppliances) {
        super(householdAppliances);
    }

    @Override
    public void turnOn() {
        System.out.println("使用普通遥控器打开");
        householdAppliances.open();
    }

    @Override
    public void turnOf() {
        System.out.println("使用普通遥控器关闭");
        householdAppliances.close();
    }
}
